package Java.com.wang.House;

import java.util.Random;

public class Customer implements Runnable {
    Random ran = new Random();
    public WareHouse wa;
    public int name;

    public Customer(WareHouse wa, int name) {
        this.wa = wa;
        this.name = name;
    }

    @Override
    public void run() {
        for (int i = 0; i < 20; i++) {
            int getnumber = ran.nextInt(500);
            wa.get(getnumber);
        }
    }
}
